import request from '@/utils/request'

function requestFunc({ url, data, method }) {
  return request({
    url,
    method,
    data,
    params: data
  })
}

export function consult_process_list(data) {
  return requestFunc({
    url: '/consult-process/list',
    method: 'get',
    data
  })
}

export function consult_process_detail(data) {
  return requestFunc({
    url: '/consult-process/detail',
    method: 'get',
    data
  })
}

export function consult_process_create(data) {
  return requestFunc({
    url: '/consult-process/create',
    method: 'post',
    data
  })
}
// 修改流程状态
export function consult_process_update(data) {
  return requestFunc({
    url: '/consult-process/update-status',
    method: 'post',
    data
  })
}
